﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL.Entity;

namespace DAL.Persistencia
{
    public class MoedaDAL
    {

        public Moeda ObterPorId(int MoedaId)
        {
            try
            {
                using (NewTierraEntities Con = new NewTierraEntities())
                {
                    return Con.Moeda.Where(m => m.Moeda_id == MoedaId).Single();   
                }
            }
            catch 
            {
                throw;
            }

        }

    }
}
